# encoding: utf-8
# @File  : config.py
# @Author: wu shaofan
# @Date  :  2024/04/17
# @Desc :
import os

# 获取当前目录 D:\A_Git\tpshop_demo_pro\TPshop_webdemo_pro
BASE_DIR = os.path.dirname(os.path.abspath(__file__))

# TPshop项目前台地址
TPshop_URL = "https://hmshop-test.itheima.net/Home/Index/index.html"

login_url = "https://hmshop-test.itheima.net/Home/user/login.html"

kaihaodian_url = "https://nkhdls.woyeepay.com/#/login"

# 后台地址
ht_login_url = "https://hmshop-test.itheima.net/index.php/Admin/Admin/login"

# 前台搜索的商品名称
search_product_name = "小米8"

# 后台新增的商品名称
add_product_name = "自动化商品"

# 前台登录用户
testdata = {
    "用户名": "18325530001",
    "密码": "wsf123456",
    "验证码": "8888"}

# 后台登录用户
ht_testdata = {
    "后台用户名": "admin",
    "密码": "HM_2023_test",
    "验证码": "8888"}

# Jenkins中存放allure报告的.json文件地址
allure_html_report_url = r"/var/jenkins_home/workspace/TPshop_webdemo/allure_html"